<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:aj="https://javaserverfaces.dev.java.net/demo/ajax"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:ma="http://mareshkau/tags">
<f:view contentType="text/html"/>

<h:head>
    <title>Mareshkau Network Search</title>
</h:head>
<ui:composition template="/templates/main.xhtml">
	<ui:define name="title">Net search</ui:define>
	<ui:define name="body">
		<f:view>
			<form id="searchFilter" name="searchFilter" method="get"
				action="./search.jsf">
			<ui:include src="/elements/search-filter.xhtml" />			
			<h:outputText value="Founded Items: #{searchresultsview.numberOfItems}, shows items from #{searchresultsview.currentPage} to #{searchresultsview.currentPage+searchresultsview.rowsPerPage}"></h:outputText>
			<ma:paginator numberOfItems="#{searchresultsview.numberOfItems}" rowsPerPage="#{searchresultsview.rowsPerPage}" currentPage="#{searchresultsview.currentPage}"/>
			<ui:include src="/elements/table.xhtml" />
			<ma:paginator numberOfItems="#{searchresultsview.numberOfItems}" rowsPerPage="#{searchresultsview.rowsPerPage}" currentPage="#{searchresultsview.currentPage}"/>
			<h:inputHidden id="currentPage" value=""/>
			<h:inputHidden id="orderBy" value="#{searchresultsview.orderBy}"/>
			<h:inputHidden id="orderDirection" value="#{searchresultsview.orderDirection}"/>
			</form>
		</f:view>
	</ui:define>
</ui:composition>
</html>